package ctgu.yao.cloud.po;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.time.ZoneOffset;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author Y
 * @since 2022-08-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Resume implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "rid", type = IdType.AUTO)
    private Integer rid;

    private String username;

    private String password;

    private String name;

    private String phone;

    private String email;

    private String sex;

    private LocalDate birthday;

    private String area;

    private String expectIndustry;

    private String expectJob;

    private String expectSalary;

    private String expectCity;

    private String summary;

    private String experience;

    private LocalDateTime time;


    public Resume(String username, String password, String name, String phone, String email, String sex, Date date) {
        this.username = username;
        this.password = password;
        this.name = name;
        this.phone = phone;
        this.email = email;
        this.sex = sex;
        this.birthday=date.toInstant().atZone(ZoneOffset.ofHours(8)).toLocalDate();
    }
}
